fullfilment-ux
TMF-711 PATCH ShipmentById
PATCH – Confirm Delivery
This method is used to confirm the delivery of a preorder device to B2BSoft.
URL
https://[localhost]:[port]/fullfilment-ux/v1/{businessId}/shipment/{id}URL Param
| name | type | description | required |
|---|---|---|---|
| businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, PR, etc.) identifying the business unit. | Y |
| id | string | Unique identifier of the shipment. posTransactionID associated with the preorder. Example: 1234567 | Y |
Header
| name | type | description | required |
|---|---|---|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUID, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
cURL request
curl --location --request PATCH 'https://nonprod.esb.cloud.lla.com/dev/fullfilment-ux/fullfilment-ux/v1/PR/shipment/1234567' \
--header 'client_id: 12345' \
--header 'client_secret: abcde' \
--header 'X-Correlation-ID: {{guid}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"shipmentItem": {
"id": 1,
"product": {
"productSerialNumber": "SN987654321"
}
},
"characteristic": [
{
"name": "deliveryConfirmation",
"value": true,
"valueType": "boolean"
}
],
"deliveryDate": "2026-07-01T12:30:00Z"
}'Definitions
Each of the request body parameters is detailed.
| name | type | description | required |
|---|---|---|---|
| shipmentItem | object | Shipment item details associated with the preorder. | Y |
| shipmentItem.id | integer | Identifier of the shipment item. Static in this use case | Y |
| shipmentItem.product | object | Product associated with the shipment item. | Y |
| shipmentItem.product.productSerialNumber | string | Serial number of the delivered device (e.g., SN987654321). | Y |
| characteristic | array | List of characteristics describing the delivery outcome. | Y |
| characteristic[].name | string | Name of the characteristic. Expected value: deliveryConfirmation. | Y |
| characteristic[].value | boolean | Value of the characteristic. true = delivery confirmed; false = delivery failed or not completed. | Y |
| characteristic[].valueType | string | Data type of the value. Expected value: boolean. | Y |
| deliveryDate | string (datetime) | ISO 8601 date and time when the preorder was successfully delivered to the customer. Should be null or absent if deliveryConfirmation=false. | O |
Response
{
"id": "1234567",
"description": "Delivery confirmed"
}Response Field Definitions
| field | type | description |
|---|---|---|
| id | string | Unique identifier of the shipment. Same value as the URI path parameter {id}. |
| description | string | Human-readable result description of the delivery confirmation operation. |
Delivery Validation Conditions
| Condition | Behavior / Error |
|---|---|
deliveryConfirmation=true sent for an already confirmed transaction | 409 Conflict – Delivery confirmation already processed for provided transaction |
deliveryConfirmation=false sent after a confirmed delivery for the same transaction | 409 Conflict – Delivery confirmation already processed for provided transaction |
productSerialNumber is missing or empty | 400 Bad Request – The request is invalid or not properly formed |
deliveryDate is absent when deliveryConfirmation=true | Delivery date is optional; the system will proceed without it |
businessId does not match a supported business unit | 404 Not Found – The requested operation failed because a resource associated with the request could not be found |
Shipment {id} does not exist in the fulfillment system | 404 Not Found – The requested operation failed because a resource associated with the request could not be found |
Possible response error
In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors" : [{
"code" : 400,
"message" : "The request is invalid or not properly formed.",
"description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
}]
}[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
}]
}[ 403 ]
Forbidden - Indicates that the server understood the request but refuses to fulfill it. If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials.
{
"errors" : [{
"code" : 403,
"message" : "The user is not authorized to perform this operation.",
"description" : "The server understood the request but refuses to authorize it."
}]
}[ 404 ]
Not Found - server has not found a resource with that URI. This may be a temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"errors" : [{
"code" : 404,
"message" : "The request is invalid or not properly formed.",
"description" : "The requested operation failed because a resource associated with the request could not be found."
}]
}[ 405 ]
Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
{
"errors" : [{
"code" : 405,
"message" : "APIKIT:METHOD_NOT_ALLOWED",
"description" : "HTTP Method POST not allowed for : /{businessId}/shipment/{id}"
}]
}[ 409 ]
Conflict - The request cannot be processed due to a conflicting delivery state. This occurs when sending deliveryConfirmation=true for an already confirmed transaction, or sending deliveryConfirmation=false after a confirmed delivery for the same posTransactionID (duplicate processing).
{
"errors" : [{
"code" : 409,
"message" : "Conflict",
"description" : "Delivery confirmation already processed for provided transaction"
}]
}[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "Internal Server Error",
"description" : "The request failed due to an internal error"
}]
}[ 501 ]
Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
{
"errors" : [{
"code" : 501,
"message" : "Not implemented",
"description" : "Operation PATCH /shipment/{id} for Business Id: xxxx not implemented"
}]
}